package com.springcloudserver.config;

import com.springcloudserver.common.AjaxResult;
import com.springcloudserver.service.FeiginService;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: chenzuolin
 * @time: 2021/3/21 17:52
 */
@Component
public class FeignServIceFallbackConfig implements FeiginService {
    @Override
    public AjaxResult hi() {
        return AjaxResult.error("feigin调用失败！！！");
    }

    @Override
    public AjaxResult findUserInfoById(String id) {
        return AjaxResult.error("feigin调用失败！！！ =>" + id);
    }

    @Override
    public AjaxResult findAllUserInfo() {
        return AjaxResult.error("feigin调用失败！！！");
    }
}
